<html>
    <body>
        <div id=test></div>
        <br>
        <br>
        <br>
        <br>
        <input id=f1></input>
        <button id=b1 onclick="document.getElementById('test').innerText=document.getElementById('f1').value">ok</button>
    </body>
</html>